package com.hq.door.bean;

import java.sql.Timestamp;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.springframework.stereotype.Component;

@Component
@XmlRootElement(name="xml")
public class WeChatEventData {
	@XmlElement(name="ToUserName")
	private String ToUserName;
	@XmlElement(name="FromUserName")
	private String FromUserName;
	@XmlElement(name="CreateTime")
	private long CreateTime;
	@XmlElement(name="MsgType")
	private String MsgType;
	@XmlElement(name="Event")
	private String Event;
	@XmlElement(name="Content")
	private String Content;
	@XmlElement(name="MsgId")
	private Integer MsgId;
	@XmlElement(name="EventKey")
	private String EventKey;
	@XmlElement(name="MenuId")
	private Integer MenuId;
	
	public Integer getMenuId() {
		return MenuId;
	}
	public void setMenuId(Integer menuId) {
		MenuId = menuId;
	}
	public String getToUserName() {
		return ToUserName;
	}
	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}
	public String getFromUserName() {
		return FromUserName;
	}
	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}
	public long getCreateTime() {
		return CreateTime;
	}
	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}
	public String getMsgType() {
		return MsgType;
	}
	public void setMsgType(String msgType) {
		MsgType = msgType;
	}
	public String getEvent() {
		return Event;
	}
	public void setEvent(String event) {
		Event = event;
	}
	public String getContent() {
		return Content;
	}
	public void setContent(String content) {
		Content = content;
	}
	public Integer getMsgId() {
		return MsgId;
	}
	public void setMsgId(Integer msgId) {
		MsgId = msgId;
	}
	public String getEventKey() {
		return EventKey;
	}
	public void setEventKey(String eventKey) {
		EventKey = eventKey;
	}
	@Override
	public String toString() {
		return "WeChatEventData [ToUserName=" + ToUserName + ", FromUserName="
				+ FromUserName + ", CreateTime=" + CreateTime + ", MsgType="
				+ MsgType + ", Event=" + Event + ", Content=" + Content
				+ ", MsgId=" + MsgId + "]";
	}
}
